package com.example.administrator.rxjavarxandroid_retrofit.reject.component;

import com.example.administrator.rxjavarxandroid_retrofit.App;
import com.example.administrator.rxjavarxandroid_retrofit.http.api.CommonApi;
import com.example.administrator.rxjavarxandroid_retrofit.reject.ContextLife;
import com.example.administrator.rxjavarxandroid_retrofit.reject.moudle.AppModule;

import javax.inject.Singleton;

import dagger.Component;

/**
 * Created by chenboge on 2016/12/18.
 */
@Singleton
@Component(modules= AppModule.class)
public interface AppComponent {

    CommonApi getCommonApi();

    @ContextLife("Application")
    App getContext();
}
